
public class Dog extends Animal implements IRunable{//类名


   @Override
   public void run() {
      System.out.println(this.name+"正在跑步");
   }

   public Dog(String name, int age, String color) {
      super(name,age,color);

   }

   @Override
   public void eat() {
      System.out.println(this.name+" 吃狗粮");
   }

   public void bark(){
       System.out.println("汪汪汪");
   }
   //成员方法

}
